package mill.hibernate.dto;
// Generated Nov 9, 2012 1:38:05 PM by Hibernate Tools 3.2.1.GA


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * WnrAllocation_mill generated by hbm2java
 */
@Entity
@Table(name="wnr_allocation"
    ,catalog="sw_wsmill"
    , uniqueConstraints = {@UniqueConstraint(columnNames="wnr_id"), @UniqueConstraint(columnNames={"inst_id", "inst_type", "wnr_id"})} 
)
public class WnrAllocation_mill  implements java.io.Serializable {


     private Integer id;
     private Integer instId;
     private Character instType;
     private Integer wnId;
     private Integer wnrId;
     private Byte status;
     private Date date;
     private Date time;
     private Byte scaleOut;
     private Date dateOut;
     private Date timeOut;
     private Float weightOut;

    public WnrAllocation_mill() {
    }

    public WnrAllocation_mill(Integer instId, Character instType, Integer wnId, Integer wnrId, Byte status, Date date, Date time, Byte scaleOut, Date dateOut, Date timeOut, Float weightOut) {
       this.instId = instId;
       this.instType = instType;
       this.wnId = wnId;
       this.wnrId = wnrId;
       this.status = status;
       this.date = date;
       this.time = time;
       this.scaleOut = scaleOut;
       this.dateOut = dateOut;
       this.timeOut = timeOut;
       this.weightOut = weightOut;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id", unique=true, nullable=false)
    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    @Column(name="inst_id")
    public Integer getInstId() {
        return this.instId;
    }
    
    public void setInstId(Integer instId) {
        this.instId = instId;
    }
    
    @Column(name="inst_type", length=1)
    public Character getInstType() {
        return this.instType;
    }
    
    public void setInstType(Character instType) {
        this.instType = instType;
    }
    
    @Column(name="wn_id")
    public Integer getWnId() {
        return this.wnId;
    }
    
    public void setWnId(Integer wnId) {
        this.wnId = wnId;
    }
    
    @Column(name="wnr_id", unique=true)
    public Integer getWnrId() {
        return this.wnrId;
    }
    
    public void setWnrId(Integer wnrId) {
        this.wnrId = wnrId;
    }
    
    @Column(name="status")
    public Byte getStatus() {
        return this.status;
    }
    
    public void setStatus(Byte status) {
        this.status = status;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="date", length=10)
    public Date getDate() {
        return this.date;
    }
    
    public void setDate(Date date) {
        this.date = date;
    }
    @Temporal(TemporalType.TIME)
    @Column(name="time", length=8)
    public Date getTime() {
        return this.time;
    }
    
    public void setTime(Date time) {
        this.time = time;
    }
    
    @Column(name="scale_out")
    public Byte getScaleOut() {
        return this.scaleOut;
    }
    
    public void setScaleOut(Byte scaleOut) {
        this.scaleOut = scaleOut;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="date_out", length=10)
    public Date getDateOut() {
        return this.dateOut;
    }
    
    public void setDateOut(Date dateOut) {
        this.dateOut = dateOut;
    }
    @Temporal(TemporalType.TIME)
    @Column(name="time_out", length=8)
    public Date getTimeOut() {
        return this.timeOut;
    }
    
    public void setTimeOut(Date timeOut) {
        this.timeOut = timeOut;
    }
    
    @Column(name="weight_out", precision=9, scale=3)
    public Float getWeightOut() {
        return this.weightOut;
    }
    
    public void setWeightOut(Float weightOut) {
        this.weightOut = weightOut;
    }




}


